package com.gxuwz.com_property.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxuwz.com_property.user.dto.UserDto;
import com.gxuwz.com_property.user.pojo.User;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    /**
    * 添加
    * */
    public Boolean addUserInfo(User user);
    /**
     * 修改
     * */
    public Boolean updateUserInfo(User user);

    /**
     * 删除
     * */
    public Boolean delectUserById(String account);

    /**
     * 根据Id进行查询
     * */
    public User selectUsersById(String account);

    /**
     * 分页查询
     * */
    public IPage<User> selectUsersByPage(Page<User> page, UserDto userDto);
}
